/************************************************************************/
// Copyright (C) 2016, han_gangbiao. All rights reserved.
// Use of this source code is governed by a GPL-v2 license that can be found in the License file.
// 
// [Time]:      2016-1-4 21:53:17
// [Author]:    han_gangbiao [http://my.oschina.net/jackhen]
// [Info]:      
/************************************************************************/

#ifndef INCLUDE_BASE_XMUTEX_H_
#define INCLUDE_BASE_XMUTEX_H_

#include "baseheader.h"

BEG_NS_SMART

class mutex_t
{
public:
    mutex_t();
    ~mutex_t();
public:
    void lock();
    void unlock();

private:
    friend class event_t;
    pthread_mutex_t m_mtx;
};

END_NS_SMART

#endif //~INCLUDE_BASE_XMUTEX_H_
